package com.amazon.bo;

import com.amazon.bo.base.BaseBo;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

/**
 * Created by anhui on 2018/3/18.
 */
@Entity
@DynamicUpdate
@DynamicInsert
public class ShopGoods extends BaseBo implements Serializable {

    @Column(columnDefinition = ("bigint default 0 comment '店铺id'"))
    private long shopId;

    @Column(columnDefinition = ("bigint default 0 comment '商品Id'"))
    private long productId;

    public long getShopId() {
        return shopId;
    }

    public void setShopId(long shopId) {
        this.shopId = shopId;
    }

    public long getProductId() {
        return productId;
    }

    public void setProductId(long productId) {
        this.productId = productId;
    }

    public long getBatchId() {
        return batchId;
    }

    public void setBatchId(long batchId) {
        this.batchId = batchId;
    }

    @Column(columnDefinition = ("varchar(40) default null comment '批次id'"))
    private long batchId;
}
